package com.zretc.service.impl;

import com.zretc.dao.ReplyCommentMapper;
import com.zretc.entity.ReplyComment;
import com.zretc.service.ReplyCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author  吴凯
 */
@Service
public class ReplyCommentServiceImpl implements ReplyCommentService {
    @Autowired
    private ReplyCommentMapper replyCommentMapper;
    @Override
    public List<ReplyComment> getSubComentsByRootCommentId(String commendsId) {
        return replyCommentMapper.findSubComentsByRootCommentId(commendsId);
    }

    @Override
    public Integer replyRootComment(ReplyComment replyComment) {
        return replyCommentMapper.replyRootComment(replyComment);
    }
}
